package org.apache.servicecomb.samples.practise.houserush.customer.manage.service;

import org.apache.servicecomb.samples.practise.houserush.customer.manage.aggregate.Customer;
import org.apache.servicecomb.samples.practise.houserush.customer.manage.aggregate.Qualification;

import java.util.List;

/**
 * @Author: Snake Man
 * @system:
 * @DateTime: 2022/1/19 22:08
 * @Description:
 */
public interface CustomerManageService {
    Customer findCustomer(int id);

    List<Customer> indexCustomers();

    Customer createCustomer(Customer customer);

    Customer updateCustomer(Customer customer);

    Boolean updateCustomerQualifications(Customer customer, List<Qualification> qualifications);

    void removeCustomer(int id);
}
